<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="../header.jsp" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import ="java.util.*" %>

<script type="text/javascript">
		function Move(RV_NO){
			var movedata = document.movedata;
			movedata.RV_NO.value = RV_NO;
			movedata.action="<%=path%>/reser_view.admin";
			movedata.method="post";
			movedata.submit();
		}
	</script>
	<form name="movedata">
		<input type="hidden" name="RV_NO"/>
	</form>

<div style="text-align: center">
		<ul id="admin_tab">
				<li id="admin_tab_1" class=""><a href="<%=path%>/adminIndex.admin"><strong>관리자 메인</strong></a></li>
				<li id="admin_tab_2" class=""><a href="<%=path%>/admin_room.admin"><strong>객실 관리</strong></a></li>
				<li id="admin_tab_3" class="on"><a href="<%=path%>/reservation.admin"><strong>예약 관리</strong></a></li>
				<li id="admin_tab_4" class=""><a href="<%=path%>/boardAdmin.admin"><strong>게시판 관리</strong></a></li>
		</ul>
</div>

					
<div id="report">
<br>
    <span class="title">RESERVATION LIST</span>
	<table class="room_list" cellpadding="0" cellspacing="0" border="0" width="100%" summary="어드민 객실리스트">
	    <colgroup>
                  <col width="10%">
                  <col width="10%">
                  <col width="15%">
                  <col width="10%">
                  <col width="20%">
                  <col width="10%">
                  <col width="15%">
                  <col width="15%">
                  <col width="10%">
        </colgroup>
		<thead>
			<tr>
				<td class="falst">예약날짜</td>
				<td>예약일수</td>
				<td>방이름</td>
				<td>예약자</td>
				<td>전화번호</td>
				<td>예약인원</td>
				<td>가격</td>
				<td>결제여부</td>
				<td>취소</td>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="reser" items="${reserList}">
				<tr>
					<td class="falst" style="height:35px;" onclick="javascript:Move(${reser.RV_NO})">${reser.RV_RDATE}</td>
					<td onclick="javascript:Move(${reser.RV_NO})">${reser.RV_DAY}</td>
					<td onclick="javascript:Move(${reser.RV_NO})">${reser.RV_ROOM}</td>
					<td onclick="javascript:Move(${reser.RV_NO})">${reser.RV_NAME}</td> <!-- 컨트롤러에 상품번호 값넘기기 -->
<%-- 					<td><a href="<%=path %>/PageView.product?gno=${goods.gno}">${goods.goods_name}</a></td> --%>
					<td onclick="javascript:Move(${reser.RV_NO})">${reser.RV_TEL}</td>
					<td onclick="javascript:Move(${reser.RV_NO})">${reser.RV_PEOPLE}</td>
					<td onclick="javascript:Move(${reser.RV_NO})">${reser.RV_PRICE}</td>
					<td onclick="javascript:Move(${reser.RV_NO})">${reser.RV_CASH}</td>
					<td style="padding: 0 5px" onClick="location.href ='reserDelete.admin?rv_no=${reser.RV_NO}'"> <a onClick="location.href ='reserDelete.admin?rv_no=${reser.RV_NO}'"><input type="button" name="item_ck" value="취소" onClick="location.href ='reserDelete.admin?rv_no=${reser.RV_NO}'"/></a></td>
				</tr>

			</c:forEach>
			
		</tbody>
	</table>
	<br><br><br><br>
</div>


<%@include file="../footer.jsp" %>